import java.util.ArrayList;
import java.util.List;
public class student {
    public static void main(String[] args) {
        List<Infomation> list = new ArrayList<Infomation>();
        Infomation st1 =new Infomation("小明","A班",89);
        Infomation st2 =new Infomation("小王","B班",89);
        Infomation st3 =new Infomation("小李","C班",89);
        Infomation st4 =new Infomation("小六","D班",89);
        list.add(st1);
        list.add(st2);
        list.add(st3);
        list.add(st4);
        System.out.println(list);

    }
}
class Infomation{
    String name;
    String Class;
    double score;

    public Infomation(String name, String Class, double score) {
        this.name = name;
        this.Class = Class;
        this.score = score;
    }

    @Override
    public String toString() {
        return "name='" + name + '\'' +
                ", Class='" + Class + '\'' +
                ", score=" + score + "\n";
    }
}
